package com.wx.springboot.step4.exception;

import com.wx.springboot.step4.common.api.IErrorCode;

/**
 * 异常断言类
 */
public class ApiAssert {
    public static void failed (String message) {
        throw new ApiException(message);
    }
    public static void failed (IErrorCode iErrorCode) {
        throw new ApiException(iErrorCode);
    }
}
